<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * typexml.php
 * @author ranuandra
 *
 * 24 Agu 2011 12:40:30
 *
 * 
 */
?>
<chart palette='4' decimals='0' enableSmartLabels='1' enableRotation='0' bgColor='99CCFF,FFFFFF' bgAlpha='40,100' bgRatio='0,100' bgAngle='360' showBorder='1' startingAngle='70' >
<?php 
if(isset($datas))
{
	foreach($datas as $data)
	{
		$type = ORM::factory('type')->where('id', '=', $data['type_id'])->find();
		//print_r($type);
		echo "<set label='".$type->type."(".$type->merk->merk.")' value='".$data['jumlah']."'  />";
	}
}

?>  
</chart>